package apj.demo.service.impl;

import java.sql.SQLException;
import java.util.List;

import apj.demo.factory.DaoFactory;
import apj.demo.model.Vendor;
import apj.demo.service.VendorServiceDao;

public class VendorServiceDaoImpl implements VendorServiceDao {

	@Override
	public List<Vendor> pageData(int index) throws SQLException {
		return DaoFactory.getVendorDaoImpl().pageData(index);
	}

	@Override
	public List<Vendor> findByAll() throws SQLException {
		return DaoFactory.getVendorDaoImpl().findByAll();
	}

	@Override
	public Vendor findById(int id) throws SQLException {
		return DaoFactory.getVendorDaoImpl().findById(id);
	}

	@Override
	public void save(Vendor vendor) throws SQLException {
		DaoFactory.getVendorDaoImpl().save(vendor);
	}

	@Override
	public void update(Vendor vendor) throws SQLException {
		DaoFactory.getVendorDaoImpl().update(vendor);
	}

}
